package com.gcmm.controller;

import com.gcmm.context.AppContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/app")
public class AppController {
    @Autowired
    private AppContext appContext;
    @GetMapping("/exit")
    public void exit() {

appContext.exit();
    }
}
